<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Generate.aspx.vb" Inherits="Mngt_Info_Generate" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Report Generation</title>
    <link href="../Style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="../scripts/dateFunc.js"></script>
</head>
<body>
    <center>
    <form id="form1" runat="server">
        <div id="divMain" runat="server" class="main">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:Panel ID="Panel_Search" runat="server" Visible="false">
                <div class="rptHeader"><asp:Label ID="lblTitle" runat="server"></asp:Label></div>
                <div class="buffer"></div>
                <div class="divider" style="height: 1px"></div>
                <div class="buffer"></div>
                <table width="600">
                    <tr>
                        <td style="width: 25px;"></td>
                        <td style="width: 125px;"></td>
                        <td style="width: 125px;"></td>
                        <td style="width: 125px;"></td>
                        <td style="width: 125px;"></td>
                        <td style="width: 75px;"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td style="text-align:right;">Client Name:</td>
                        <td><asp:TextBox ID="txtClientName" runat="server"></asp:TextBox></td>
                        <td style="text-align:right; width: 125px;">As of:</td>
                        <td><asp:TextBox ID="txtDate" runat="server"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td style="text-align:right;">Provider:</td>
                        <td><asp:TextBox ID="txtProvider" runat="server"></asp:TextBox></td>
                        <td style="text-align:right; width: 125px;">Product:</td>
                        <td><asp:TextBox ID="txtProduct" runat="server"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td style="text-align:right;">Advisor:</td>
                        <td><asp:TextBox ID="txtAdvisor" runat="server"></asp:TextBox></td>
                        <td style="text-align: right; width: 125px;">
                            Policy No:</td>
                        <td style="text-align: left"><asp:TextBox ID="txtPolicyNo" runat="server"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td style="width: 125px"></td>
                        <td style="text-align:right;"><asp:Button ID="btnGenerate" runat="server" Text="Generate Report" Width="125px" /></td>
                        <td></td>
                    </tr>
                </table>
            </asp:Panel>
            
            <asp:Panel ID="Panel_Date_Search" runat="server" Visible="false">
                <div style="text-align:left;">
                    <div class="rptHeader"><asp:Label ID="lblTitleDate" runat="server"></asp:Label></div>
                    <div class="buffer"></div>
                    <div class="divider" style="height: 1px"></div>
                    <div class="buffer"></div>
                    <table width="600px" id="tblDate" runat="server">
                        <tr>
                            <td style="width: 25px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 75px;"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td style="text-align:right;">Start Date:</td>
                            <td><asp:TextBox ID="Startdate_txt" runat="server" width="125px"></asp:TextBox>
                                <asp:Label id="Label3" runat="server" Width="64px" ForeColor="Gray" Text="dd/mm/yyyy" Font-Size="7pt" Font-Overline="False" Font-Names="Verdana"></asp:Label>
                            </td>
                            <td style="text-align:right;">End Date:</td>
                            <td>
                                <asp:TextBox ID="Enddate_txt" runat="server" width="125px"></asp:TextBox>
                                <asp:Label id="Label1" runat="server" Width="64px" ForeColor="Gray" Text="dd/mm/yyyy" Font-Size="7pt" Font-Overline="False" Font-Names="Verdana"></asp:Label>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                    <table width="600px" id="tblPolicy" runat="server">
                        <tr>
                            <td style="width: 25px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 75px;"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td style="text-align:right;">Client Name:</td>
                            <td><asp:TextBox ID="Client_txt" runat="server" width="125px"></asp:TextBox></td>
                            <td style="text-align:right;">Policy No:</td>
                            <td><asp:TextBox ID="Policynumber_txt" runat="server"  width="125px"></asp:TextBox></td>
                            <td></td>
                        </tr>
                    </table>
                    <table width="600px" id="tblProduct" runat="server">
                        <tr>
                            <td style="width: 25px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 75px;"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td style="text-align:right;">Provider:</td>
                            <td><asp:TextBox ID="Provider_txt" runat="server" width="125px"></asp:TextBox></td>
                            <td style="text-align:right;">Product:</td>
                            <td><asp:TextBox ID="Product_txt" runat="server" width="125px"></asp:TextBox></td>
                            <td></td>
                        </tr>
                    </table>
                    <table width="600px" id="tblAdvisor" runat="server">
                        <tr>
                            <td style="width: 25px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 125px;"></td>
                            <td style="width: 75px;"></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td style="text-align:right;">Advisor:</td>
                            <td><asp:TextBox ID="Advisor_txt" runat="server" width="125px"></asp:TextBox></td>
                            <td id="tdStatus" runat="server" style="text-align: right;">Status:</td>
                            <td>
                                <asp:DropDownList ID="Status_cmb" runat="server" width="125px">
                                </asp:DropDownList>&nbsp;</td>
                            <td></td>
                        </tr>
                        
                        <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td style="text-align:right;"><asp:Button ID="btnIssue" runat="server" Text="Generate Report" Width="125px" /></td>
                            <td></td>
                        </tr>
                    </table>
                </div>
                
            </asp:Panel>
            <asp:CustomValidator ID="dtv1" runat="server" ClientValidationFunction="valDate"
                ControlToValidate="Startdate_txt" ErrorMessage="Invalid Start Date" ForeColor="White">.</asp:CustomValidator>
            <asp:CustomValidator ID="dtv4" runat="server" ClientValidationFunction="valDate"
                ControlToValidate="Enddate_txt" ErrorMessage="Invalid End Date" ForeColor="White">.</asp:CustomValidator>
            <asp:CustomValidator
                    ID="dtv2" runat="server" ClientValidationFunction="valDate" ControlToValidate="txtDate"
                    ErrorMessage="Invalid Date" ForeColor="White">.</asp:CustomValidator><ajaxtoolkit:MaskedEditExtender
                        ID="MaskedEditExtender1" runat="server" Mask="99/99/9999" MaskType="Date" TargetControlID="Enddate_txt">
                    </ajaxtoolkit:MaskedEditExtender>
            <ajaxtoolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99/99/9999"
                MaskType="Date" TargetControlID="Startdate_txt">
            </ajaxtoolkit:MaskedEditExtender><ajaxtoolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server" Mask="99/99/9999"
                MaskType="Date" TargetControlID="txtDate">
            </ajaxtoolkit:MaskedEditExtender>
            <ajaxtoolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
                TargetControlID="dtv1">
            </ajaxtoolkit:ValidatorCalloutExtender>
            <ajaxtoolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
                TargetControlID="dtv4">
            </ajaxtoolkit:ValidatorCalloutExtender><ajaxtoolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server"
                TargetControlID="dtv2">
            </ajaxtoolkit:ValidatorCalloutExtender>
        </div>
    </form>
    </center>
</body>
</html>
